package com.han.spring.mvc._0130_Filters;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.han.spring.mvc._0143_Handler_Methods.SessionAttributesController;

/**
* @author hanpeng
* @version 创建时间：2020年8月3日 下午3:26:17
* @ClassName 类名称
* @Description 类描述
*/
@Controller
public class FilterController {
	private  static Log log = LogFactory.getLog(FilterController.class);
	private  static final String SUCCESS="success";
	@RequestMapping("/httpPutFormContentFilter")
	public String  httpPutFormContentFilter(User user ) {
		System.out.println(user);
		return SUCCESS;
	}
	@RequestMapping(value="/hiddenHttpMethodFilter",method=RequestMethod.PUT)
	public String  hiddenHttpMethodFilter(User user ) {
		System.out.println(user);
		return SUCCESS;
	}
}
